import mongoose from 'mongoose'
const Schema = mongoose.Schema
const MenuSchema = new Schema({
  name: String,
  typename: String,
  child: [
    {
      title: String,
      child: [
        String
      ],
      _id: false
    }
  ]
},{versionKey: false})

export default mongoose.model('Menu', MenuSchema)